package com.fx.mapper;

import com.fx.entity.ChangeRecord;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * 
 * @author yfl
 * @email 617823298@qq.com
 * @date 2018-06-25 15:10:48
 */
@Mapper
@Component
public interface ChangeRecordMapper {

	ChangeRecord getById(String flId);
	
	List<ChangeRecord> queryList(Map<String, Object> map);
	
	int queryCount(Map<String, Object> map);
	
	int save(ChangeRecord changeRecord);
	
	int updateById(ChangeRecord changeRecord);
	
	int remove(String fl_id);
	
	int batchRemove(String[] flIds);

	List<ChangeRecord> queryListByUserId(String userId);

	List<ChangeRecord> queryChangeRecordByUserId(String userId);

	BigDecimal queryTotalWithdrawAmountByUserId(String userId);
}
